<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01DOM操作</title>
</head>
<body>
<button style="width: 100px;height: 50px;" onclick="addMoney()">点我变富</button>
<script>
    function addMoney(){
        let imgE = document.createElement('img');
        imgE.src = 'img/money.jpg';
        document.body.append(imgE);
        imgE.width=100;
    }
</script>

</body>
</html>